<template>
  <Modal v-model="unRoutePop" width="30" class-name="vertical-center-modal" :mask-closable="false" :closable="false">
    <!-- 页头 -->
    <div slot="header" class="header-title">{{ $t('user.un_route_title') }}</div>
    <!-- 内容 -->
    <div class="content-wrap">
      <div class="tips-text">
        <Icon type="ios-alert" color="#FF186B" size="20" />
        {{ $t('user.un_route_tips') }}
      </div>
    </div>
    <!-- 底部 -->
    <div slot="footer" class="footer-wrap">
      <div class="cancel-btn" @click="onHidePop">{{ $t('public.cancel') }}</div>
      <div class="confirm-btn" @click="confirmBtn">
        <img class="btn-kf" src="@/assets/images/pay/kf-pay.png" alt="" />
        {{ $t('user.contact_service') }}
      </div>
    </div>
  </Modal>
</template>
<script>

export default {
  data() {
    return {
      unRoutePop: false,
    }
  },
  methods: {
    open() {
      this.unRoutePop = true;
    },
    onHidePop() {
      this.unRoutePop = false;
    },
    confirmBtn() {
      this.unRoutePop = false;
      if (window.ssq) {
        ssq.push('chatOpen')
      }
    },
  }
}
</script>

<style lang="less" scoped>
:deep(.ivu-modal-content) {
  background: linear-gradient(181deg, #FFE1EA 0, #FFFFFF 40%);
  border-radius: 8px 8px 8px 8px;
}

:deep(.ivu-modal-header) {
  border: none;
  padding: 34px 32px;
}

:deep(.ivu-modal-body) {
  padding: 0 32px;
}

:deep(.ivu-modal-footer) {
  border: none;
  padding: 32px;
  text-align: left;
}

:deep(.ivu-modal-close) {
  position: absolute;
  top: 42px;
  right: 43px;
}

:deep(.ivu-modal-close .ivu-icon-ios-close) {
  color: #333333;
  font-size: 32px;
}

.vertical-center-modal {
  display: flex;
  align-items: center;
  justify-content: center;

  .header-title {
    font-family: Open Sans, Open Sans;
    font-weight: 600;
    font-size: 20px;
    color: #333333;
    line-height: 23px;
  }

  .content-wrap {

    .tips-text {
      font-family: Open Sans, Open Sans;
      font-weight: 400;
      font-size: 18px;
      color: #333333;
      line-height: 21px;
      text-align: justify;
      display: inline-flex;
      align-items: start;
      gap: 6px;
    }
  }

  .footer-wrap {
    display: flex;
    justify-content: end;
    gap: 16px;

    .cancel-btn {
      padding: 12px 40px;
      border-radius: 8px 8px 8px 8px;
      border: 1px solid #DCDFE6;
      font-family: Open Sans, Open Sans;
      font-weight: 600;
      font-size: 18px;
      color: #333333;
      line-height: 28px;
      cursor: pointer;
    }

    .confirm-btn {
      padding: 12px 20px;
      border-radius: 8px 8px 8px 8px;
      border: 1px solid #FF186B;
      font-family: Open Sans, Open Sans;
      font-weight: 600;
      font-size: 18px;
      color: #FF186B;
      line-height: 21px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 4px;

      .btn-kf {
        width: 28px;
        height: 28px;
      }
    }
  }
}
</style>